<?php
return [
    'appName' => 'iflowApplictionByCMS',
    // 存储路由的配置key
    'router' => [
        'key' => 'router',
        // 路由前缀
        'routerPrefix' => [
            'cmsAdmin' => 'cms/api/admin',
            'cmsHome' => 'cms/home/api',
            'oauth2' => 'oauth/v2'
        ]
    ],
    // RPC服务路由配置
    'rpcRouter' => [
        'key' => 'rpcRouter'
    ],
    // 查看 API 文档 地址
    'api_path' => 'e10adc3949ba59abbe56e057f20f883e',
    // 资源监听
    'appMonitoring' => [
        'toEmails' => [
        ],
        'enable' => false,
        'delayTime' => 24 * 60 * 60,
        'diskFree' => 1,
        'MemFree' => 1,
    ],
    'favicon' => app() -> getRootPath() . 'public' . DIRECTORY_SEPARATOR . 'favicon.ico',
    // 记录请求信息
    'saveRuntimeLog' => false,
    '404_error_page' => app() -> getRootPath() . 'public'. DIRECTORY_SEPARATOR . '404.html',
    'resources' => [
        'file' => [
            'rule' => 'static',
            'rootPath' => app() -> getRootPath() . 'public'.DIRECTORY_SEPARATOR.'static'
        ]
    ],
    // 是否开启debug
    'debug' => true,
    // 异常模板文件
    'exception_tpl' => '',
    // 异常回调
    'exceptionHandle' => \app\exception\HttpException::class,
    // 是否开启SAAS服务
    'saasEnable' => false,
    // 通过nginx (php-fpm) 还是 通过swoole 部署服务
    'saasServer' => 'nginx', // nginx or swoole
    // nginx服务地址 用于部署 PHP服务 SAAS模式有效
    'nginxPath' => '/usr/local/webserver/tengine-2.3.3'
];